	<div class="overview"  style="width:45%;float:right">
        <div class="dashboard-heading">Thống kê</div>
        <div class="dashboard-content" style="min-height:initial;padding:5px;font-weight:bold">
          <table class="list" style="margin-bottom:0">
          <tbody>
		   <thead>
				<tr>
				   <td class="right">Tổng doanh thu</td> 
				    <td class="right"><?php echo $total;?>
					</td>
					<td align="right"><a class="button" id="button-transaction">Thanh Toán</a></td>
				</tr>
				<tr>
				   <td class="right">Ghi chú: </td> 
				    <td class="right"><textarea rows="5" cols="40" name="comment"></textarea></td>
				</tr>
			  </thead>
          </tbody>
        </table>
		
        </div>
      </div>
	  <div style="clear:both"></div>
		<table class="list">
          <thead>
		  <p style="font-weight:bold;font-size: 16px;">Thống kê chi tiết</p>
            <tr>
              <td class="center">STT</td>  
              <td class="center">Mã thành viên</td>  
              <td class="center">Mã giới thiệu</td>  
			  <td class="center">Họ tên</td>
			  <td class="center">Điện thoại</td>
			  <td class="center">Email</td>		
              <td class="center">Ngày Tham gia</td>
              <td class="center">Lần 1</td>
              <td class="center">Lần 2</td>
				
            </tr>
          </thead>
         <tbody>
		  <?php if ($customers) { $i = Count($customers); ?>
            <?php foreach ($customers as $customer) { ?>
			<tr>	
               <td class="center"><?php echo $i; ?></td>
			   <td class="center"><?php echo $customer['madn']; ?></td>
			   <td class="center"><?php echo $customer['parent']; ?></td>
			   <td class="center"><?php echo $customer['name']; ?></td>
               <td class="center"><?php echo $customer['telephone']; ?></td>
			   <td class="center"><?php echo $customer['email']; ?></td>
               <td class="center"><?php echo $customer['date_added']; ?></td>
			   <td class="center"><?php echo $customer['price']; ?></td>
			   <td class="center"><?php echo $customer['price2']; ?></td>
            </tr>
            <?php $i--; } ?>
            <?php } else { ?>
            <tr>
              <td class="center" colspan="9"></td>
            </tr>
            <?php } ?>
          </tbody>
        </table>